﻿<Window x:Class="FunCam.SettingsWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="FunCam Settings" Height="285" Width="360" ShowInTaskbar="False" WindowStyle="ToolWindow" WindowStartupLocation="CenterOwner" Padding="5" ResizeMode="NoResize">
    <Grid Margin="5" >
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="40" />
            <RowDefinition Height="40" />
            <RowDefinition Height="40" />
            <RowDefinition Height="40" />
            <RowDefinition Height="40" />
            <RowDefinition Height="40" />
        </Grid.RowDefinitions>
        <CheckBox Content="Play shutter sound" VerticalAlignment="Center" x:Name="cbPlayShutterSound"/>
        <TextBlock Grid.Row="1" Text="Autosave Interval" VerticalAlignment="Center"/>
        <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.Column="1" VerticalAlignment="Center">
            <TextBox Text="1" VerticalAlignment="Center" Width="50" x:Name="tbAutoSaveInterval" />
            <TextBlock Grid.Row="2" Text="minutes" VerticalAlignment="Center"/>
        </StackPanel>
        <TextBlock Grid.Row="2" Text="Save format" VerticalAlignment="Center"/>
        <ComboBox Grid.Row="2" Grid.Column="1" VerticalAlignment="Center" x:Name="cmbSaveFormat" ItemsSource="{Binding FileFormats}" />
        <TextBlock Grid.Row="3" Text="Filename base" VerticalAlignment="Center" />
        <TextBox Grid.Row="3" Grid.Column="1" VerticalAlignment="Center" Text="camsave" x:Name="tbFilenameBase" />
        <TextBlock Grid.Row="4" Text="Save location" VerticalAlignment="Center"/>
        <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="1">
            <TextBox Width="170" Text="c:\uSERS\" VerticalAlignment="Center" x:Name="tbSaveLocation" />
            <Button Content="..." VerticalAlignment="Center" Width="30" x:Name="btnBrowse" Click="btnBrowse_Click" Margin="3,0,0,0" />
        </StackPanel>
        <StackPanel Orientation="Horizontal" Grid.Row="5" Grid.ColumnSpan="2" HorizontalAlignment="Center" Margin="5">
            <Button Content="OK" Width="75" x:Name="OkBtn" Click="OkBtn_Click" />
            <Button Content="Cancel" Width="75" Margin="30,0,0,0" x:Name="CancelBtn" Click="CancelBtn_Click" />
        </StackPanel>
    </Grid>
</Window>
